package com.ww.exercise.coroutine

import exercise.coroutine.easy.q1.Result
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

suspend fun doSomething(): Result {
    val result = Result()
    // 指定作用域，启动异步协程
    GlobalScope.launch(Dispatchers.IO) {
        // TODO 协程中处理
    }
    return result
}